home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra / helpful.zip / mail < prev    next >
Text File  |  1995-08-21  |  30KB  |  808 lines

  1.   The Linux Electronic Mail HOWTO
  2.   Vince Skahan, <vince@halcyon.com>
  3.   v1.18, 31 March 1995
  4.  
  5.   This document describes the setup and care+feeding of Electronic Mail
  6.   (e-mail) under Linux.  You need to read this if you plan to communi-
  7.   cate locally or to remote sites via electronic mail.  You probably do
  8.   *not* need to read this document if don't exchange electronic mail
  9.   with other users on your system or with other sites.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of 'frequently asked
  15.   questions' about e-mail software under Linux.
  16.  
  17.   This document and the corresponding UUCP and News 'HOWTO' documents
  18.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  19.   posted to comp.os.linux.announce.
  20.  
  21.  
  22.   1.1.  New versions of this document
  23.  
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   In addition, you should be generally able to find this document on the
  32.   Linux WorldWideWeb home page at http://sunsite.unc.edu/mdw/linux.html.
  33.  
  34.  
  35.   1.2.  Feedback
  36.  
  37.  
  38.   I am interested in any feedback, positive or negative, regarding the
  39.   content of this document via e-mail.  Definitely contact me if you
  40.   find errors or obvious omissions.
  41.  
  42.   I read, but do not necessarily respond to, all e-mail I receive.
  43.   Requests for enhancements will be considered and acted upon based on
  44.   that day's combination of available time, merit of the request, and
  45.   daily blood pressure :-)
  46.  
  47.   Flames will quietly go to /dev/null so don't bother.
  48.  
  49.   In particular, the Linux filesystem standard for pathnames is an
  50.   evolving thing.  What's in this document is there for illustration
  51.   only based on the current standard at the time that part of the
  52.   document was written and in the paths used in the distributions or
  53.   'kits' I've personally seen.  Please consult your particular Linux
  54.   distribution(s) for the paths they use.
  55.  
  56.   Feedback concerning the actual format of the document should go to the
  57.   HOWTO coordinator - Greg Hankins (gregh@sunsite.unc.edu).
  58.  
  59.  
  60.   1.3.  Copyright Information
  61.  
  62.  
  63.   The Mail-HOWTO is copyrighted (c)1994 Vince Skahan.
  64.  
  65.   A verbatim copy may be reproduced or distributed in any medium
  66.   physical or electronic without permission of the author.  Translations
  67.   are similarly permitted without express permission if it includes a
  68.   notice on who translated it.
  69.  
  70.   Short quotes may be used without prior consent by the author.
  71.   Derivative work and partial distributions of the Mail-HOWTO must be
  72.   accompanied with either a verbatim copy of this file or a pointer to
  73.   the verbatim copy.
  74.  
  75.   Commercial redistribution is allowed and encouraged; however, the
  76.   author would like to be notified of any such distributions.
  77.  
  78.   In short, we wish to promote dissemination of this information through
  79.   as many channels as possible. However, we do wish to retain copyright
  80.   on the HOWTO documents, and would like to be notified of any plans to
  81.   redistribute the HOWTOs.
  82.  
  83.   We further want that ALL information provided in the HOWTOS is
  84.   disseminated.  If you have questions, please contact Greg Hankins, the
  85.   Linux HOWTO coordinator, at gregh@sunsite.unc.edu.
  86.  
  87.  
  88.   1.4.  Standard Disclaimer
  89.  
  90.  
  91.   Of course, I disavow any potential liability for the contents of this
  92.   document.  Use of the concepts, examples, and/or other content of this
  93.   document is entirely at your own risk.
  94.  
  95.  
  96.   1.5.  Other sources of information
  97.  
  98.  
  99.  
  100.   1.5.1.  LINUX HOWTO Documents:
  101.  
  102.  
  103.   There is plenty of exceptional material provided in the other Linux
  104.   HOWTO documents and from the Linux DOC project.  In particular, you
  105.   might want to take a look at the following:
  106.  
  107.  
  108.   o  the Serial Communications HOWTO
  109.  
  110.   o  the Ethernet HOWTO
  111.  
  112.   o  the Linux Networking Administrators' Guide
  113.  
  114.  
  115.   1.5.2.  USENET:
  116.  
  117.  
  118.  
  119.              comp.mail.elm           the ELM mail system.
  120.              comp.mail.mh            The Rand Message Handling system.
  121.              comp.mail.mime          Multipurpose Internet Mail Extensions.
  122.              comp.mail.misc          General discussions about computer mail.
  123.              comp.mail.multi-media   Multimedia Mail.
  124.              comp.mail.mush          The Mail User's Shell (MUSH).
  125.              comp.mail.sendmail      the BSD sendmail agent.
  126.              comp.mail.smail         the smail mail agent.
  127.              comp.mail.uucp          Mail in the uucp environment.
  128.  
  129.  
  130.  
  131.  
  132.  
  133.   1.5.3.  Books
  134.  
  135.  
  136.   The following is a non-inclusive set of books that will help...
  137.  
  138.  
  139.   o  "Managing UUCP and USENET" from O'Reilly and Associates is in my
  140.      opinion the best book out there for figuring out the programs and
  141.      protocols involved in being a USENET site.
  142.  
  143.   o  "Unix Communications" from The Waite Group contains a nice
  144.      description of all the pieces (and more) and how they fit together.
  145.  
  146.  
  147.   o  "Sendmail" from O'Reilly and Associates looks to be the definitive
  148.      reference on sendmail-v8 and sendmail+IDA.  It's a "must have" for
  149.      anybody hoping to make sense out of sendmail without bleeding in
  150.      the process.
  151.  
  152.   o  "The Internet Complete Reference" from Osborne is a fine reference
  153.      book that explains the various services available on Internet and
  154.      is a great source for information on news, mail, and various other
  155.      Internet resources.
  156.  
  157.   o  "The Linux Networking Administrators' Guide" from Olaf Kirch of the
  158.      Linux DOC Project is available on the net and is also published by
  159.      (at least) O'Reilly and SSC.  It makes a fine one-stop shopping to
  160.      learn about everything you ever imagined you'd need to know about
  161.      Unix networking.
  162.  
  163.      Shameless plug mode ON - the sendmail+IDA descriptions below have
  164.      been very much expanded and more fully explained in Chapter 15 of
  165.      the  Linux Networking Administrators' Guide.  I strongly recommend
  166.      you grab a copy and read it.
  167.  
  168.  
  169.  
  170.   1.6.  Where *NOT* to look for help
  171.  
  172.  
  173.   There is nothing "special" about configuring and running mail under
  174.   Linux (any more).  Accordingly, you almost certainly do *NOT* want to
  175.   be posting generic mail-related questions to the comp.os.linux.*
  176.   newsgroups.
  177.  
  178.   Unless your posting is truly Linux-specific (ie, "please tell me what
  179.   routers are already compiled into the SLS1.03 version of smail3.1.28")
  180.   you should be asking your questions in one of the newsgroups or
  181.   mailing lists referenced above.
  182.  
  183.   Let me repeat that.
  184.  
  185.   There is virtually no reason to post anything mail-related in the
  186.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  187.   the comp.mail.* hierarchy to handle *ALL* your questions.
  188.  
  189.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  190.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE ELECTRONIC MAIL EXPERTS
  191.   HANG OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  192.  
  193.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  194.   YOUR TIME AND EVERYBODY ELSE'S...AND IT FREQUENTLY DELAYS YOU FROM
  195.   GETTING THE ANSWER TO YOUR QUESTION.
  196.  
  197.  
  198.  
  199.   2.  Hardware Requirements
  200.  
  201.   There are no specific hardware requirements for mail under Linux.
  202.  
  203.   You'll need some sort of 'transport' software to connect to remote
  204.   systems, which means either tcp-ip or uucp.   This could mean that you
  205.   need a modem or ethernet card (depending on your setup).
  206.  
  207.  
  208.   3.  Getting the software
  209.  
  210.   In general, I grab my sources from ftp.uu.net and the other fine
  211.   archive sites on Internet.  In addition, Linux-specific binary ports
  212.   are found in the usual Linux distrbutions and on the usual Linux
  213.   anonymous ftp sites (sunsite.unc.edu and tsx-11.mit.edu in
  214.   particular).
  215.  
  216.   The newspak-2.4.tar.z distribution contains config files and readme
  217.   files related to building uucp, news, and mail software under Linux
  218.   from the various freely-available sources.  It can usually be found in
  219.   sunsite.unc.edu:/pub/Linux/system/Mail/news.  If you can't find it on
  220.   sunsite, please send me mail and I'll make sure you get a copy of it.
  221.  
  222.  
  223.   4.  Mail 'Transport Agents'
  224.  
  225.   This section contains information related to 'transport agents', which
  226.   means the underlying software that connects your local system to
  227.   remote systems.
  228.  
  229.  
  230.   4.1.  Smail v3.1
  231.  
  232.   Smail3.1 seems to be a de-facto standard transport agent for uucp-only
  233.   sites and for some smtp sites.  It compiles without patching from the
  234.   sources.  In addition, smail is provided in binary form in the SLS
  235.   distribution of Linux.
  236.  
  237.   The newspak distribution contains config files for smail3.1.28 under
  238.   Linux that you can use to start with.
  239.  
  240.   If you're building smail from sources, you need to have the following
  241.   in your os/linux file so that 'sed' gives you shell scripts that work
  242.   properly.
  243.  
  244.           CASE_NO_NEWLINES=true
  245.  
  246.  
  247.  
  248.   For a uucp-only system that has a MX-record and that wants a
  249.   domainized header (who goes through a smart-host for everything),
  250.   these are the entire config files you'll need:
  251.  
  252.  
  253.   o  replace 'subdomain.domain' with your domain name
  254.  
  255.   o  replace 'myhostname' with you un-domainized hostname
  256.  
  257.   o  replace 'my_uucp_neighbor' with the uucp name of your upstream site
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.              #-------- /usr/local/lib/smail/config -----------------
  266.              #
  267.              # domains we belong to
  268.              visible_domain=subdomain.domain:uucp
  269.              #
  270.              # who we're known as (fully-qualified-site-name)
  271.              visible_name=myhostname.subdomain.domain
  272.              #
  273.              # who we go through
  274.              smart_path=my_uucp_neighbor
  275.              #
  276.              #---------- /usr/local/lib/smail/paths --------------
  277.              #
  278.              # we're a domainized site, make sure we accept mail to both names
  279.              myhostname        %s
  280.              myhostname.subdomain.domain      %s
  281.              #
  282.              #-------------------------------------------------------------------
  283.  
  284.  
  285.   To run smail as a smtp daemon, add the following to /etc/inetd.conf:
  286.  
  287.                   smtp stream tcp nowait  root  /usr/bin/smtpd smtpd
  288.  
  289.  
  290.   Outgoing mail gets sent automatically, when using elm. If your inter-
  291.   net link is down when you send mail, then the mail sits in
  292.   "/usr/spool/smail/input".  When the link next comes up, "runq" is run
  293.   which causes the mail to be sent.
  294.  
  295.  
  296.   4.2.  Sendmail+IDA
  297.  
  298.   I run a ppp and uucp site and generally use sendmail5.67b+IDA1.5
  299.   instead of smail3.1.28 due to the incredible ease of use.  There is a
  300.   binary distribution in sunsite.unc.edu:pub/Linux/system/Mail/delivery.
  301.   To install it:
  302.  
  303.  
  304.   o  you'll probably want to remove (or rename) all the files from smail
  305.      (see the /install/installed directory if you are SLS) to be safe.
  306.  
  307.   o  cd to / then "gunzip -c sendmail5.67b+IDA1.5.tpz | tar xvf -" If
  308.      you have a "modern" tar from a recent Slackware (for example) you
  309.      can probably just do a "tar -zxvf filename.tgz" and get the same
  310.      results.
  311.  
  312.   o  cd to /usr/local/lib/mail/CF and copy the sample.m4 local.m4 file
  313.      to "yourhostname.m4".  Edit out the distributed hostname, aliases,
  314.      and smarthost and put in the correct one for your site.  The
  315.      default file is for a uucp-only site who has domainized headers and
  316.      who talks to a smart host.  Then "make yourhostname.cf" and move
  317.      the resulting file to /etc/sendmail.cf
  318.  
  319.   o  if you are uucp-only, you do *NOT* need to create any of the tables
  320.      mentioned in the README.linux file.  You'll just have to touch the
  321.      files so that the Makefile works.  Just edit the .m4 file, make
  322.      sendmail.cf, and start testing it.
  323.  
  324.   o  if you're uucp-only and you talk to sites in addition to your
  325.      "smart-host", you'll need to add uucpxtable entries for each (or
  326.      mail to them will also go through the smart host) and run dbm
  327.      against the revised uucpxtable.
  328.  
  329.   o  if you use my sendmail5.67b+IDA1.5 distribution you should not use
  330.      a "freeze file".
  331.   o  If you run Rich Braun's original binary distribution of 5.67a,
  332.      you'll need to freeze the configuration if you change your .cf file
  333.      with "/usr/lib/sendmail -bz" to make the changes take effect.  You
  334.      should also update your version to at least 5.67b since there is a
  335.      nasty security hole in 5.67a and earlier.
  336.  
  337.   Another nice thing is that if you have mail.debug set and you run
  338.   syslogd, your incoming and outgoing mail messages will get logged.
  339.   See the /etc/syslog.conf file for details.
  340.  
  341.   The sources for sendmail+IDA may be found at vixen.cso.uiuc.edu.  They
  342.   require no patching to run under Linux if you're running something
  343.   like a kernel of 1.00.
  344.  
  345.   If you're running a current kernel of around 1.1.50 or later, you get
  346.   the fun of reversing most of the Linux-specific patches that are now
  347.   in the vanilla sources.  It's extremely obvious where this needs to be
  348.   done.  Just type make and when it blows up, go to that line in the
  349.   sources and comment out the Linux-specific code that's in there.
  350.  
  351.   Sometime after things settle down, I'll send the 'unpatches' to the
  352.   sendmail+IDA authors and ask'em to remove the now unnecessary patches.
  353.  
  354.   If you're going to run sendmail+IDA, I strongly recommend you go to
  355.   the sendmail5.67b+IDA1.5 version since all required Linux-specific
  356.   patches are now in the vanilla sources and several security holes have
  357.   been plugged that WERE (!!!) in the older version you may have grabbed
  358.   or built before about December 1st, 1993.
  359.  
  360.   The May/June 1994 edition of Linux Journal has an extensive article on
  361.   the care and feeding of sendmail+IDA.  The new edition of the Linux
  362.   DOC Project Networking Administrator's Guide has an even more detailed
  363.   and complete version.
  364.  
  365.  
  366.   4.2.1.  The sendmail.m4 file
  367.  
  368.   Sendmail+IDA requires you to set up a sendmail.m4 file rather than
  369.   editing the sendmail.cffile directly.  The nice thing about this is
  370.   that it is simple to set up mail configurations that are extremely
  371.   difficult (if not totally impossible for most people to set up
  372.   correctly) in smail or traditional sendmail.
  373.  
  374.   The sendmail.m4 file that corresponds to the above smail example looks
  375.   like the following:
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.     dnl #------------------ SAMPLE SENDMAIL.M4 FILE ------------------
  398.     dnl #
  399.     dnl # (the string 'dnl' is the m4 equivalent of commenting out a line)
  400.     dnl #
  401.     dnl # you generally don't want to override LIBDIR from the compiled in paths
  402.     dnl #define(LIBDIR,/usr/local/lib/mail)dnl    # where all support files go
  403.     define(LOCAL_MAILER_DEF, mailers.linux)dnl    # mailer for local delivery
  404.     define(POSTMASTERBOUNCE)dnl                   # postmaster gets bounces
  405.     define(PSEUDODOMAINS, BITNET UUCP)dnl         # don't try DNS on these
  406.     dnl #
  407.     dnl #-------------------------------------------------------------
  408.     dnl #
  409.     dnl # names we're known by
  410.     define(PSEUDONYMS, myhostname.subdomain.domain myhostname.UUCP)
  411.     dnl #
  412.     dnl # our primary name
  413.     define(HOSTNAME, myhostname.subdomain.domain)
  414.     dnl #
  415.     dnl # our uucp name
  416.     define(UUCPNAME, myhostname)dnl
  417.     dnl #
  418.     dnl #-------------------------------------------------------------
  419.     dnl #
  420.     define(UUCPNODES, |uuname|sort|uniq)dnl       # our uucp neighbors
  421.     define(BANGIMPLIESUUCP)dnl                    # make certain that uucp
  422.     define(BANGONLYUUCP)dnl                       #  mail is treated correctly
  423.     define(RELAY_HOST, my_uucp_neighbor)dnl       # our smart relay host
  424.     define(RELAY_MAILER, UUCP-A)dnl               # we reach moria via uucp
  425.     dnl #
  426.     dnl #--------------------------------------------------------------------
  427.     dnl #
  428.     dnl # the various dbm lookup tables
  429.     dnl #
  430.     define(ALIASES, LIBDIR/aliases)dnl            # system aliases
  431.     define(DOMAINTABLE, LIBDIR/domaintable)dnl    # domainize hosts
  432.     define(PATHTABLE, LIBDIR/pathtable)dnl        # paths database
  433.     define(GENERICFROM, LIBDIR/generics)dnl       # generic from addresses
  434.     define(MAILERTABLE, LIBDIR/mailertable)dnl    # mailers per host or domain
  435.     define(UUCPXTABLE, LIBDIR/uucpxtable)dnl      # paths to hosts we feed
  436.     define(UUCPRELAYS, LIBDIR/uucprelays)dnl      # short-circuit paths
  437.     dnl #
  438.     dnl #--------------------------------------------------------------------
  439.     dnl #
  440.     dnl # include the 'real' code that makes it all work
  441.     dnl # (provided with the source code)
  442.     dnl #
  443.     include(Sendmail.mc)dnl                         # REQUIRED ENTRY !!!
  444.     dnl #
  445.     dnl #------------ END OF SAMPLE SENDMAIL.M4 FILE -------
  446.  
  447.  
  448.  
  449.  
  450.  
  451.   4.2.2.  Defining a local mailer
  452.  
  453.   Unlike most Unix distributions, Linux does not come with a local mail
  454.   delivery agent by default.  I recommend using the commonly available
  455.   deliver program, which is an optional package in a number of the usual
  456.   Linux distributions.  In order to do so, you need to define a
  457.   LOCAL_MAILER_DEF in the sendmail.m4 file that points to a file that
  458.   looks like:
  459.  
  460.  
  461.  
  462.  
  463.     # -- /usr/local/lib/mail/mailers.linux --
  464.     #     (local mailers for use on Linux )
  465.     Mlocal, P=/usr/bin/deliver, F=SlsmFDMP, S=10, R=25/10, A=deliver $u
  466.     Mprog,  P=/bin/sh,       F=lsDFMeuP,   S=10, R=10, A=sh -c $u
  467.  
  468.  
  469.  
  470.   There is a also built-in default for deliver in the Sendmail.mc file
  471.   that gets included into the sendmail.cf file.  To specify it, you
  472.   would not use the mailers.linux file but would instead define the
  473.   following in your sendmail.m4 file:
  474.  
  475.  
  476.      dnl --- (in sendmail.m4) ---
  477.      define(LOCAL_MAILER_DEF, DELIVER)dnl       # mailer for local delivery
  478.  
  479.  
  480.  
  481.   Unfortunately, Sendmail.mc assumes deliver is installed in /bin, which
  482.   is not the case with Slackware1.1.1 (which installs it in /usr/bin).
  483.   In that case you'd need to either fake it with a link or rebuild
  484.   deliver from sources so that it resides in /bin.
  485.  
  486.  
  487.   4.2.3.  The Sendmail+IDA dbm Tables
  488.  
  489.   Setting up special behavior for sites or domains is done through a
  490.   number of optional dbm tables rather than editing the sendmail.cf file
  491.   directly.  Refer to the July-1994 issue of Linux Journal, to the docs
  492.   in the sources, or to the sendmail chapter in the newest version of
  493.   the Linux DOC Project Networking Administration Guide which will be
  494.   available real-soon-now for more details.
  495.  
  496.  
  497.   o  mailertable   - defines special behavior for remote hosts or
  498.      domains.
  499.  
  500.   o  uucpxtable    - forces UUCP delivery of mail to hosts that are in
  501.      DNS format.
  502.  
  503.   o  pathtable     - defines UUCP bang-paths to remote hosts or domains.
  504.  
  505.   o  uucprelays    - short-circuits the pathalias path to well-known
  506.      remote hosts.
  507.  
  508.   o  genericfrom   - converts internal addresses into generic ones
  509.      visible to the outside world.
  510.  
  511.   o  xaliases      - converts generic addresses to/from valid internal
  512.      ones.
  513.  
  514.   o  decnetxtable  - converts RFC-822 addresses to DECnet-style
  515.      addresses.
  516.  
  517.  
  518.   4.2.4.  So Which Entries are Really Required?
  519.  
  520.   When not using any of the optional dbm tables, sendmail+IDA delivers
  521.   mail via the DEFAULT_MAILER (and possibly RELAY_HOST and RELAY_MAILER)
  522.   defined in the sendmail.m4 file used to generate sendmail.cf.  It is
  523.   easily possible to override this behavior through entries in the
  524.   domaintable or uucpxtable.
  525.  
  526.   A generic site that is on Internet and speaks Domain Name Service, or
  527.   one that is UUCP-only and forwards all mail via UUCP through a smart
  528.   RELAY_HOST, probably does not need any specific table entries at all.
  529.   Virtually all systems should set the DEFAULT_HOST and PSEUDONYMS
  530.   macros, which define the canonical site name and aliases it is known
  531.   by, and DEFAULT_MAILER.  If all you have is a relay host and relay
  532.   mailer, you don't need to set these defaults since it works
  533.   automagically.
  534.  
  535.   UUCP hosts will probably also need to set UUCPNAME to their official
  536.   UUCP name.  They will also probably set RELAY_MAILER, and RELAY_HOST
  537.   which enable smart-host routing through a mail relay.  The mail
  538.   transport to be used is defined in RELAY_MAILER and should usually be
  539.   UUCP-A for UUCP sites.
  540.  
  541.   If your site is SMTP-only and talks `Domain Name Service', you would
  542.   change the DEFAULT_MAILER to TCP-A and probably delete the
  543.   RELAY_MAILER and RELAY_HOST lines.
  544.  
  545.   If you're a SLIP site, you might want to take the easy way out and
  546.   just forward all outgoing mail to your service provider to do the
  547.   right thing with.  To do so, you'd want to define ISOLATED_DOMAINS and
  548.   VALIDATION_DOMAINS to be your domain, you'd also want to define
  549.   RELAY_HOST to be your service provider and RELAY_MAILER to be TCP. Of
  550.   course, you want to ask permission before you set any system up as
  551.   your general purpose relay.
  552.  
  553.  
  554.   4.3.  Sendmail 8.6
  555.  
  556.   Sendmail 8.6.x from Berkeley is the latest major revision after
  557.   sendmail5.  It has wonderful built-in support for building under
  558.   Linux.  Just "make linux" and you'll be all set.  You'll probably be
  559.   best served by grabbing one of the various binary distributions off of
  560.   the usual Linux archive sites rather than fighting things like
  561.   Berkeley dbm yourself.
  562.  
  563.   There's a nice distribution of sendmail 8.6.12 from Jason Haar -
  564.   j.haar@lazerjem.demon.co.uk in
  565.   sunsite.unc.edu:/pub/Linux/system/Mail/delivery/sendmail-8.6.12-bin.tgz
  566.   that has the source documentation and a very nice quickie description
  567.   of how to run sendmail v8 for common configurations.
  568.  
  569.   Bottom line with sendmail v8 is that you want to configure the bare
  570.   minimum necessary to get the job done.  The following is an example
  571.   that should get you close at least.
  572.  
  573.  
  574.   4.3.1.  A Sample 8.6.x mc file
  575.  
  576.   Much like sendmail+IDA, sendmail v8 uses m4 to process a config file
  577.   into a full sendmail.cf that sendmail uses.  The following is my
  578.   current mc file for my site (ppp to Internet for outgoing mail, uucp
  579.   for incoming mail).
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.           dnl divert(-1)
  596.           #---------------------------------------------------------------------
  597.           #
  598.           # this is the .mc file for a linux host that's set up as follows:
  599.           #
  600.           #       - connected to Internet for outbound mail (ppp here)
  601.           #       - connected via UUCP for incoming mail
  602.           #       - domainized headers
  603.           #       - no local mailer (use 'deliver' instead)
  604.           #       - no DNS running so don't canonicalize outgoing via DNS
  605.           #       - all non-local outbound mail goes to the RELAY_HOST over smtp
  606.           #           (we run ppp and let our service provider do the work)
  607.           #
  608.           #                                       vds 3/31/95
  609.           #
  610.           #---------------------------------------------------------------------
  611.           include(`../m4/cf.m4')
  612.           VERSIONID(`linux nodns relays to slip service provider smarthost')dnl
  613.           Cwmyhostname.myprimary.domain myhostname.UUCP localhost
  614.           OSTYPE(linux)
  615.           FEATURE(nodns)dnl
  616.           FEATURE(always_add_domain)dnl
  617.           FEATURE(redirect)
  618.           FEATURE(nocanonify)
  619.           dnl MAILER(local)dnl
  620.           MAILER(smtp)dnl
  621.           MAILER(uucp)dnl
  622.           define(`RELAY_HOST', smtp:my.relay.host.domain)
  623.           define(`SMART_HOST', smtp:my.relay.host.domain)
  624.           define(`UUCP_RELAY', smtp:my.relay.host.domain)
  625.           define(`LOCAL_MAILER_PATH', `/bin/deliver')
  626.           define(`LOCAL_MAILER_ARGS', `deliver $u')
  627.  
  628.  
  629.  
  630.  
  631.   4.3.2.  Sendmail v8 tidbits
  632.  
  633.   There are a few differences I suppose to the 'IDA bigots' among us.
  634.   So far, I've found the following.
  635.  
  636.   o  Instead of 'runq', you type 'sendmail -q' to run the queue
  637.  
  638.  
  639.   4.4.  Other "transport agents"
  640.  
  641.   The following also are known to run under Linux.  Consult "archie" for
  642.   details regarding how to find them...
  643.  
  644.  
  645.   o  smail2.5 - very simple UUCP-based smail
  646.  
  647.  
  648.   4.5.  Local Delivery Agents
  649.  
  650.   Unlike most operating systems, Linux does not have mail "built-in".
  651.   You'll need a program to deliver the local mail.  One good program is
  652.   Rich Braun's "lmail" program, but I've switched to using the more
  653.   commonly available "deliver" program.
  654.  
  655.   Documentation for how to use either for local delivery is in the
  656.   sendmail5.67b+IDA1.5 binary release (on sunsite) mentioned above.
  657.  
  658.  
  659.  
  660.  
  661.   5.  Mail "User Agents"
  662.  
  663.   This section contains information related to "user agents", which
  664.   means the software the user sees and uses.  This software relies on
  665.   the "transport agents" mentioned above.
  666.  
  667.  
  668.   5.1.  Elm
  669.  
  670.   Elm compiles, installs, and runs flawlessly under Linux up to and
  671.   through Slackware 1.1.1 (gcc2.4.5, gcclib 4.4.4).  For more
  672.   information, see the elm sources and installation instructions.
  673.  
  674.   The only thing to know is that Elm's Configure script incorrectly sets
  675.   the "ranlib" variable in config.sh.  The Elm Development Team has been
  676.   informed of this little problem, so please don't bother them with it
  677.   (again).
  678.  
  679.  
  680.   o  (from  Chip Rosenthal - chip@chinacat.unicom.com ) The easiest way
  681.      to deal with this is to create a file called config.over at the top
  682.      of you Elm source tree and include the line:
  683.  
  684.              ranlib='ranlib'
  685.  
  686.  
  687.  
  688.   o  Alternatively, you can just remember to correctly edit the line in
  689.      config.sh when Configure gives you the chance to do so.
  690.  
  691.   o  Elm and filter need to be mode 2755 (group mail) with
  692.      /usr/spool/mail mode 775 and group mail.
  693.  
  694.      If you use a binary distribution, you'll need to create a
  695.      /usr/local/lib/elm/elm.rc file to override the compiled-in hostname
  696.      and domain information:
  697.  
  698.  
  699.   o  replace "subdomain.domain" with your domain name replace
  700.  
  701.   o  "myhostname" with you un-domainized hostname replace
  702.  
  703.  
  704.              #---------- /usr/local/lib/elm/elm.rc ------------------
  705.              #
  706.              # this is the unqualified hostname
  707.              hostname = myhostname
  708.              #
  709.              # this is the local domain
  710.              hostdomain = subdomain.domain
  711.              #
  712.              # this is the fully qualified hostname
  713.              hostfullname = myhostname.subdomain.domain
  714.              #
  715.              #--------------------------------------------------------
  716.  
  717.  
  718.   One thing you want to be aware of is that if you have Elm compiled to
  719.   be MIME-able, you need metamail installed and in your path or Elm will
  720.   not be able to read MIME mail you've received.  Metamail is available
  721.   on thumper.bellcore.com and of course via "archie".
  722.  
  723.   We have heard reports that gcc and gcclib newer than v2.4.5 and v4.4.4
  724.   respectively are rather strict and fail to compile Elm.  Here's the
  725.   scoop as reported by  ccnp@unitrix.utr.ac.za (Neil Parker)  who
  726.   forwarded a posting by  longyear@netcom.com (Al Longyear).
  727.   o  ELM is using internal fields in the FILE structure in an effort to
  728.      bypass the standards. (The _flag, _IOERR, and _IOEOF are old fields
  729.      for the pre-POSIX runtime package. While POSIX doesn't say that you
  730.      can't define these fields, it does not say that you _must_. Linux
  731.      does not. It does say that programs should not be written to use
  732.      them, even if they are in the implementation.)
  733.  
  734.               where it does         if (fp->_flag & _IOERR) ...
  735.               change it to          if (ferror(fp)) ....
  736.  
  737.               where it does         if (fp->_flag & _IOEOF) ...
  738.               change it to          if (feof(fp)) ...
  739.  
  740.               These are the ANSI/POSIX definitions for the same function.
  741.  
  742.  
  743.  
  744.   o  While this item is not Linux-specific, it's perceived (wrongly) to
  745.      be a nagging Elm bug nevertheless.  We've heard that Elm sometimes
  746.      fails with a message that it's unable to malloc() some massive
  747.      number of bytes.  The identified workaround is to remove the post-
  748.      processed global mail aliases (aliases.dir and aliases.pag).
  749.  
  750.      THIS IS NOT A BUG IN ELM.  It's an error in configuration of Elm by
  751.      whomever you got your binary distribution of Elm from.  Elm has an
  752.      enhanced, and non-compatible, format for aliases.  You need to
  753.      ensure that the path Elm uses for aliases is different from the
  754.      path sendmail/smail uses.  From the volume of reports of this
  755.      problem, it's apparent that at least one major distribution 'on the
  756.      street' has in the past been misconfigured.  The current Slackware
  757.      does it correctly.
  758.  
  759.  
  760.  
  761.   o  (from  scot@catzen.gun.de (Scot W. Stevenson) )
  762.  
  763.      The current metamail package requires csh for some of its scripts.
  764.      Failure to have csh (or tcsh) will cause most interesting errors...
  765.  
  766.  
  767.   5.2.  Mailx
  768.  
  769.   Safe yourself the pain.  Just go and grab the mailx kit from Slackware
  770.   2.1.0 or later, which has a nice implementation of mailx5.5.  If
  771.   you're into building from sources, mailx v5.5 compiles without
  772.   patching under Linux if you have "pmake" installed.
  773.  
  774.   If anybody is still using it, I strongly recommend removing the old
  775.   "edmail" stuff from SLS1.00 and replacing it with mailx.
  776.  
  777.  
  778.   5.3.  Other user agents
  779.  
  780.   The following also are known to run under Linux.  Consult "archie" for
  781.   details regarding how to find them...
  782.  
  783.   o  Pine      - from the Univ. of Washington
  784.  
  785.   o  Metamail  - allows MIME support
  786.  
  787.   o  mh      - yet another way to handle mail
  788.  
  789.   o  deliver   - file/process mail based on rules
  790.  
  791.   o  procmail  - file/process mail based on rules
  792.  
  793.   o  Majordomo - manages e-mail lists
  794.  
  795.   o  Mserv     - provide files-by-mail
  796.  
  797.  
  798.   6.  Acknowledgements
  799.  
  800.   The following people have helped in the assembly of the information
  801.   (and experience) that helped make this document possible:
  802.  
  803.   Steve Robbins, Ian Kluft, Rich Braun, Ian Jackson, Syd Weinstein, Ralf
  804.   Sauther, Martin White, Matt Welsh, Ralph Sims, Phil Hughes, Chip
  805.   Rosenthal, Scot Stevenson, Neil Parker
  806.  
  807.   If I forgot anybody, my apologies...
  808.